package cn.cs.service;


import cn.cs.common.Page;
import cn.cs.pojo.RepairComplaint;
import cn.cs.pojo.RepairComplaintNode;

import java.util.List;
import java.util.Map;

public interface RepairComplaintService {

    public RepairComplaint getRepairComplaintById(String id) throws Exception;

    public List<RepairComplaint> getRepairComplaintListByMap(Map<String, Object> param) throws Exception;

    public Integer getRepairComplaintCountByMap(Map<String, Object> param) throws Exception;

    public Integer addRepairComplaint(RepairComplaint repairComplaint) throws Exception;

    public Integer modifyRepairComplaint(RepairComplaint repairComplaint) throws Exception;

    public Integer deleteRepairComplaintById(String id) throws Exception;

    public Page<RepairComplaint> queryRepairComplaintPageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize) throws Exception;

    public Map<String, Object> getPersonByCode(String code) throws Exception;

    public Integer addRepairComplaintNode(RepairComplaintNode repairComplaint) throws Exception;

    public Page<RepairComplaintNode> queryRepairComplaintNodePageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize)throws Exception;

    public List<RepairComplaintNode> getRepairComplaintNodeListByMap(Map<String, Object> param) throws Exception;
}
